﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site2.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.Models.SurveyResult>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> - Surveys management
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
    Fill in survey
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Fill-in Survey <%= Model.Survey.SurveyOrdinal + " - " + Model.Survey.SurveyYear + " - " + Model.Survey.SurveyPeriod %>
    </h1>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <fieldset id="survey_gi">
        <legend>General Information</legend>
        <label for="SurveyResultsPopulation">
            TA population<img src="/images/definition.png" title="Approximate number of inhabitants in the Target Area (TA)." width="16" height="16" /></label>
        <div class="marg_der_230 flota alin_der">
            <%= Html.TextBoxFor(model => model.SurveyResultsPopulation) %>
            
        </div>
        <label for="SurveyResultsHospitals">
            Number of Acute Care Hospitals<img src="/images/definition.png" title="Number of hospitals in the TA where patients are treated for an acute injury or illness, trauma or during recovery time from surgery." width="16" height="16" /></label>
        <%= Html.TextBoxFor(model => model.SurveyResultsHospitals) %>
        
        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsPopulation, "The entered value is not valid. Please insert the number without commas or dots")%>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsHospitals) %>
        <div class="limpia"></div>

        <label for="SurveyResultsBeds">
            Beds in TA<img src="/images/definition.png" title="Approximate number of beds in the Acute Care Hospitals of the TA." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsBeds) %>
        </div>
        <label for="SurveyResultsDeath">
            Deaths in TA<img src="/images/definition.png" title="Number of deaths in the Acute Care Hospitals of the TA during the survey’s period." width="16" height="16" /></label>
        <div class="flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsDeath) %>
        </div>

        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsBeds) %>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsDeath) %>

    </fieldset>
    <fieldset id="survey_icu">
        <legend>ICU</legend>
        <label for="SurveyResultsBedsICU">
            Beds in ICU<img src="/images/definition.png" title="Number of ICU beds in the Acute Care Hospitals of the TA. An ICU bed is defined as a critical care specialised bed with a nurse/bed ratio of 1/3 or higher and where patients may be mechanically ventilated for at least 24h." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsBedsICU) %>
            
        </div>
        <label for="SurveyResultsNeurosurgery">
            Neuro-surgery facility units<img src="/images/definition.png" title="Number of Acute Care Hospitals where cranial neurosurgical procedures (i.e. craniotomy, ventricular drainage) can be guaranteed for at least 8h a day." width="16" height="16" /></label>
        <%= Html.TextBoxFor(model => model.SurveyResultsNeurosurgery) %>

        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsBedsICU) %>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsNeurosurgery) %>
        <div class="limpia"></div>


        <label for="SurveyResultsAdmittedICU">
            Admitted patients in ICU<img src="/images/definition.png" title="Number of patients admitted in the ICU beds during the survey’s period." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsAdmittedICU) %>
           
        </div>
        <label for="SurveyResultsDeathICU">
            Deaths in ICU<img src="/images/definition.png" title="Number of patients admitted in the ICU beds during the survey’s period." width="16" height="16" /></label>
        <div class="flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsDeathICU) %>
            
        </div>

        <div class="limpia"></div>
         <%= Html.ValidationMessageFor(model => model.SurveyResultsAdmittedICU) %>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsDeathICU) %>

    </fieldset>
    <fieldset id="survey_dac">
        <legend>Donation and coordination</legend>
        <label for="SurveyResultsPotentialDonors">
            Potential DBD donors<img src="/images/definition.png" title="Number of patients whose clinical condition were suspected to fulfill brain death criteria during the period of study." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsPotentialDonors) %>
        </div>
        <label for="SurveyResultsRefusal">
            Eligible DBD donors<img src="/images/definition.png" title="Number of medically suitable persons (with no medical contraindications for organ donation) that have been declared dead based on neurologic criteria as stipulated by the law of the relevant jurisdiction, during the survey’s period." width="16" height="16" /></label>
        <div class="flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsEligibleDonors) %>
        </div>

        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsPotentialDonors) %>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsEligibleDonors)%>
        <div class="limpia"></div>

        <label for="SurveyResultsPotentialDonors">
            Actual DBD donors<img src="/images/definition.png" title="Number of Consented Eligible Donors in whom an operative incision was made with the intent of organ recovery for the purpose of transplantation and/or from whom at least one organ was recovered for the purpose of transplantation, during the period of study." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsActualDonors) %>
            
        </div>
        <label for="SurveyResultsRefusal">
            Utilized DBD donors<img src="/images/definition.png" title="Number of Actual DBD Donors from whom at least one organ was transplanted." width="16" height="16" /></label>
        <div class="flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsUtilizedDonors) %>
            
        </div>
        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsActualDonors)%>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsUtilizedDonors)%>
        <div class="limpia"></div>

        <label for="SurveyResultsProcuredOrgans">
            Procured organs<img src="/images/definition.png" title="Number of organs obtained from Utilized DBD Donors (Point 12)." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsProcuredOrgans) %>
            
        </div>
        <label for="SurveyResultsEffectiveDonors">
            Cadaveric tissue only effective donors<img src="/images/definition.png" title="Number of deceased persons, excluded the Utilized DBD donors, from whom tissues were recovered for the purpose of transplantation, during the period of study. May include persons who were declared dead outside the hospital, but within the TA." width="16" height="16" /></label>
        <div class="flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsCadaveric) %>
            
        </div>

        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsProcuredOrgans) %>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsCadaveric)%>
        <div class="limpia"></div>

        <br />
        <label for="SurveyResultsDonorCoordinatorsFull">
            People working full time<img src="/images/definition.png" title="Number of persons working full-time in Donation within the TA, during the survey’s period." width="16" height="16" /></label>
        <div class="marg_der_230 flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsDonorCoordinatorsFull) %>
        </div>
        <label for="SurveyResultsDonorCoordinatorsPart">
            People working part time<img src="/images/definition.png" title="Number of persons working part-time in Donation within the TA, during the survey’s period." width="16" height="16" /></label>
        <div class="flota">
            <%= Html.TextBoxFor(model => model.SurveyResultsDonorCoordinatorsPart) %>
        </div>
        
        <div class="limpia"></div>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsDonorCoordinatorsFull) %>
        <%= Html.ValidationMessageFor(model => model.SurveyResultsDonorCoordinatorsPart) %>
    </fieldset>
    <div class="enlaces">
        <a href="#" onclick="document.forms[0].submit()">Save data</a>
        <%= Html.ActionLink("Cancel", "IndexOrDetails", "ReporterManager", new { targetAreaID = Model.TargetArea.TargetAreaID }, null)%>
    </div>
    <% } %>
    <div>
    </div>
</asp:Content>
